home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Minami 58
/
MINAMI58.ISO
/
Varios
/
Juegos Flash
/
Gold Yard.exe
/
scripts
/
DefineSprite_324
/
frame_57
/
DoAction.as
Wrap
Text File
|
2003-04-29
|
2KB
|
73 lines
a;
"c" < (b >= undefined) || 1();
tellTarget("_root.droid" add depth)
{
gotoAndStop(_root.library.direction);
}
animation();
collision1 = _root.wall.hittest(pointerx - 14,pointery - 7,true);
collision2 = _root.wall.hittest(pointerx - 7,pointery - 14,true);
collision3 = _root.wall.hittest(pointerx + 8,pointery - 14,true);
collision4 = _root.wall.hittest(pointerx + 14,pointery - 7,true);
collision5 = _root.wall.hittest(pointerx + 14,pointery + 8,true);
collision6 = _root.wall.hittest(pointerx + 8,pointery + 14,true);
collision7 = _root.wall.hittest(pointerx - 7,pointery + 14,true);
collision8 = _root.wall.hittest(pointerx - 14,pointery + 8,true);
if(collision1 == false && collision2 == false && collision3 == false && collision4 == false && collision5 == false && collision6 == false && collision7 == false && collision8 == false)
{
call("movement");
letter0 = chr(Number(int(pointerx / 30)) + 97);
number0 = int(pointery / 30);
cellcontent = eval(letter0 add number0);
if(0 < Number(cellcontent))
{
call("cells");
stop();
}
}
else
{
var x1 = Number(pointerx + antennaX1);
var y1 = pointery + antennaY1;
var x2 = Number(pointerx + antennaX2);
var y2 = pointery + antennaY2;
collisionA1 = _root.wall.hittest(x1,y1,true);
collisionA2 = _root.wall.hittest(x2,y2,true);
if(collisionA1 == false)
{
if(direction == "left" or direction == "right")
{
down();
animation();
call("movement");
stop();
}
else if(direction == "up" or direction == "down")
{
left();
animation();
call("movement");
stop();
}
}
else if(collisionA2 == false)
{
if(direction == "left" or direction == "right")
{
up();
animation();
call("movement");
stop();
}
else if(direction == "up" or direction == "down")
{
right();
animation();
call("movement");
stop();
}
}
stop();
}
stop();